<template>
  <a-input v-model="innerValue"/>
</template>
<script>
import {createProps} from "@/utils";

export default {
  name: 'Input',
  props: {
    value: createProps(String),
  },
  methods: {
    updateValue(v) {
      this.$emit('update:value', v);
    }
  },
  computed: {
    innerValue: {
      get() {
        return this.value;
      },
      set(v) {
        this.updateValue(v)
      },
    }
  }
};
</script>